<form action="{{route('auth.register')}}" method="post">
    {{csrf_field()}}
    {{ $slot }}
    用户名: <input placeholder="用户名" name="name" type="text"
                value="{{old('name',isset($socialite) ? $socialite->getNickname() : '')}}"
                required>
    @if($errors->has('name'))
        {{$errors->first('name')}}
    @endif
    <br>
    密码: <input placeholder="密码" name="password" type="password" required>
    @if($errors->has('password'))
        {{$errors->first('password')}}
    @endif
    <br>
    确认密码: <input placeholder="确认密码" name="password_confirmation" type="password" required>
    @if($errors->has('password_confirmation'))
        {{$errors->first('password_confirmation')}}
    @endif
    <br>
    手机号: <input placeholder="手机号" name="mobile" type="text" value="{{old('mobile')}}" required>
    @if($errors->has('mobile'))
        {{$errors->first('mobile')}}
    @endif
    <br>
    验证码: <input placeholder="手机验证码" name="sms_code" type="text" value="{{old('sms_code')}}" required>
    <a href="{{route('send-sms-code','17633190977')}}" target="_blank">发送验证码</a>
    @if($errors->has('sms_code'))
        {{$errors->first('sms_code')}}
    @endif
    <br>
    <button type="submit">注册</button>
</form>